import request from '@/utils/request'

export function listordHead(data) {
    return request({
      url: '/dev/purchase/ordHead/list',
      method: 'get',
      data
    })
  }
  
  export function createordHead(data) {
    return request({
      url: '/dev/purchase/ordHead/create',
      method: 'post',
      data
    })
  }
  
  export function readordHead(data) {
    return request({
      url: '/dev/purchase/ordHead/get/' + data.id,
      method: 'get'
    })
  }
  
  export function updateordHead(data) {
    return request({
      url: '/dev/purchase/ordHead/update',
      method: 'post',
      data
    })
  }
  
  export function deleteordHead(data) {
    return request({
      url: '/dev/purchase/ordHead/delete/' + data.fbillno,
      method: 'delete'
    })
  }
  export function getListArea(query) {
    return request({
      url: '/dev/data/area/getList',
      method: 'get',
      data: query
    })
  }

  export function listinfo(query) {
    return request({
      url: '/dev/equipment/info/list',
      method: 'get',
      data: query
    })
  }